package cn.com.yiqi.wsc.service.item.impl;

import cn.com.yiqi.wsc.common.Result;
import cn.com.yiqi.wsc.common.ResultStatusEnum;
import cn.com.yiqi.wsc.dao.item.ItemCheckDao;
import cn.com.yiqi.wsc.entity.item.ItemCheck;
import cn.com.yiqi.wsc.service.item.PortalItemCheckService;
import cn.com.yiqi.wsc.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 杨贵森
 * @ClassName:PortalItemCheckServiceImpl
 * @Title: PortalItemCheckServiceImpl
 * @Description: TODO
 * @date 2017/3/22
 */
@Service
public class PortalItemCheckServiceImpl implements PortalItemCheckService {
    @Autowired
    ItemCheckDao itemCheckDao;
    @Autowired
    UserService userService;
    @Override
    public Result addItemCheck(ItemCheck itemCheck) {
        //itemCheck.setCheckUserId(userService.getCurrentUserId());
        Result result =new Result();
        result.setStatus(ResultStatusEnum.操作成功.getCode());
        result.putData("addItemCheckStatus", itemCheckDao.insert(itemCheck));
        return result;
    }

    @Override
    public Result selectItemCheck(ItemCheck itemCheck) {
        return null;
    }
}
